//
//  BZ_GHS_SysMessViewController.m
//  penzer
//
//  Created by caiyc on 2018/11/16.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "BZ_GHS_SysMessViewController.h"
#import "BZ_GHS_MessTableViewCell.h"
@interface BZ_GHS_SysMessViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation BZ_GHS_SysMessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"系统消息";
    [self setUpRightButtonItem:1 style:nil Image:@"编辑" title:nil target:@selector(checkCalander) width:30 titleColor:nil titleFont:0];
    [self SetupTabView];
    // Do any additional setup after loading the view from its nib.
}


-(void)checkCalander{
    
}


-(void)SetupTabView
{
    [self.tableView registerNib:[UINib nibWithNibName:NSStringFromClass([BZ_GHS_MessTableViewCell class]) bundle:nil]  forCellReuseIdentifier:NSStringFromClass([BZ_GHS_MessTableViewCell class])];
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    self.tableView.estimatedRowHeight = 200;
    self.tableView.rowHeight = UITableViewAutomaticDimension;
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 3;
}


-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    //BZMineRegularItemTableViewCell
    BZ_GHS_MessTableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:NSStringFromClass([BZ_GHS_MessTableViewCell class])];
    if(indexPath.row==0){
        cell.mutiple_W.constant = 40;
    }else{
        cell.mutiple_W.constant = 10;
        cell.CountDes_H.constant = 0;
//        cell.calenderImg_H.constant = 0;
    }
    return cell;
    
}

@end
